<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>File Upload and Download</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>
	<font size=5 color=#FF0000> <b>文件上传----使用jspsmart upload组件</b> </font>
	<br>
	<form action="servlet/ServletUpload" method="post" enctype="multipart/form-data">
		<p>
			文件名称： <input type="file" name="file1" size="20" maxlength="80">
		</p>
		<p>
			文件名称： <input type="file" name="file2" size="20" maxlength="80">
		</p>
		<p>
			文件名称： <input type="file" name="file3" size="20" maxlength="80">
		</p>
		<p>
			<input type="submit" value="上传"> <input type="reset" value="重置">
		</p>
	</form>

	<font size=5 color=#FF0000> <b>文件下载----使用jspsmart upload组件</b> </font>
	<br>
	<form action="servlet/ServletDownload" method="post">
		<p>
			下载文件的名称： <input type="text" name="downloadFileName" size="20" maxlength="80">
		</p>
		<input type="submit" value="下载">
	</form>

</body>
</html>
